<!DOCTYPE html>
<html lang="<?php echo Yii::app()->language; ?>">
<head>
<meta charset="utf-8" />
<?php echo BHelper::HtmlHeaderMobile($this); ?>
<style>
.navbar-fixed-top{margin-bottom:0;}
.navbar .brand{margin-left:0; padding:8px 0; width:auto;}
</style>
</head>
<body>
<div class="navbar navbar-fixed-top">
	<div class="navbar-inner navbar-header">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</a>
			<a class="brand" href="javascript:history.back(1);">
				<img src="<?php echo Yii::app()->request->baseUrl; ?>/img/logo-mobile.png" style="height:32px; margin-top:4px;" />
			</a>
			<div class="nav-collapse">
				<ul class="nav pull-right small-font">
					<li><a href="<?php echo Yii::app()->createUrl('/accounts/language', array('lang'=>'fi_fi')) ?>">Suomi</a></li>
					<li><a href="<?php echo Yii::app()->createUrl('/accounts/language', array('lang'=>'en_gb')) ?>">English</a></li>
<?php
if (Yii::app()->user->isGuest) {
	echo '<li><a class="facebook-login-action" href="javascript:;"><i class="gicon-facebook gicon-white"></i> <span>'.BUtils::T('login_lbl').'</span></a></li>';
} else {
	$url_picture = Yii::app()->user->getState('picture', null);
	if (empty($url_picture)) {
		$picture_html = '<i class="icon-user icon-white"></i> ';
	} else {
		$picture_html = '<img src="'.$url_picture.'" width="20" alt="" /> ';
	}
	echo '<li><a href="#" class="dropdown-toggle" data-toggle="dropdown" style="border-left:1px solid #eee;">'
			.$picture_html . Yii::app()->user->getState('name') .'</a>
	<ul class="dropdown-menu" role="menu">
		<li><a href="'.Yii::app()->createUrl('/mobile/merchant/following').'">Following merchants</a></li>
		<li><a href="'.Yii::app()->createUrl('/accounts/logout').'">Logout</a></li>
	</ul>
</li>';
}
?>
				</ul>
			</div>
		</div>
	</div>
</div>
<div class="container">
	<?php echo $content; ?>
</div><!-- /container -->
<?php echo BHelper::HtmlScripts(); ?>
</body>
</html>